package classExample;

enum Color
{
    RED,
    GREEN,
    BLUE;
}
public class EnumDemo {
    public static void main(String[] args)
    {
        showColor(Color.RED);
    }
    public static void showColor(Color color)
    {
        switch(color)
        {
            case RED:
                System.out.println("red");break;
            case GREEN:
                System.out.println("green");break;
            case BLUE:
                System.out.println("blue");break;
        }
    }
}
